package Logica.Validacion;

public class VehiculoValidacion extends Validacion{
	
	/**Valido la cadena NOMBRE (marca), campo OBLIGATORIO*/
	public static boolean validaMarca(String str){
		if (str.length() > 0)
			return (esCadena(str) && (str.length()<=45));	
		else return false;
	}
	
	/**Valido la cadena MODELO, campo OBLIGATORIO*/
	public static boolean validaModelo(String str){
		if (str.length() > 0)
			return (esModelo(str) && (str.length()<=45));	
		else return false;
	}
	
	/**Valido la cadena Tipo, campo OBLIGATORIO*/
	public static boolean validaTipo(String str){
		if (str.length() > 0)
			return (esCadena(str) && (str.length()<=45));	
		else return false;
	}
	
	

}
